// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.geeke.entity.base.EntityBase;
import top.geeke.eunm.SysStatusEnum;
import top.geeke.toolkit.eunm.Description;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperIndex;
import top.geeke.toolkit.supertable.annotation.SuperTable;

import java.io.Serializable;

/**
 * <p>
 * 系统职位表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_pos")
@SuperTable(value = "系统职位表", isSystem = true, indexes = {
        @SuperIndex(indexName = "sys_index_{table}_N", indexFields = "posName"),
        @SuperIndex(indexName = "sys_index_{table}_C", indexFields = "posCode"),
})
public class SysPos extends EntityBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "职位名称")
    private String posName;

    @SuperColumn(value = "职位编码", nullable = true)
    private String posCode;

    @Description("是否禁止选中")
    @TableField(exist = false)
    private boolean disabled;

    @SuperColumn(value = "状态")
    private SysStatusEnum status = SysStatusEnum.Enabled;

    @SuperColumn(value = "排序", defaultValue = "100")
    private Integer orderNo = 100;

    @SuperColumn(value = "备注", nullable = true, length = 128)
    private String remark;
}
